package com.example.demo111111.dao;

import com.example.demo111111.entity.AuditProduct;
import com.example.demo111111.entity.Product;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AuditProductDao {

    Boolean save(AuditProduct product);

    Boolean update(AuditProduct product);

    Page<AuditProduct> pageQuery(AuditProduct product);

    @Delete("delete  from audit_product where id=#{id}")
    Boolean deleteById(Long id);


    @Delete("delete  from audit_product where product_id=#{id}")
    void deleteByproductId(Long id);
}
